package com.msb.serviceprice.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.msb.commons.dto.PriceRule;
import com.msb.commons.response.ResponseResult;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author chshh
 * @since 2022-11-06
 */
public interface PriceRuleService extends IService<PriceRule> {
    public ResponseResult add(PriceRule priceRule);
    public ResponseResult edit(PriceRule priceRule);

    ResponseResult getLastVersion(String  fareType);
    ResponseResult isNew(@RequestParam String  fareType, @RequestParam Integer fareVersion);

    ResponseResult<Boolean> ifExists(PriceRule priceRule);
}
